package ro.myApp.articles.client;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import ro.myApp.articles.entities.Article;
import ro.myApp.articles.entities.Review;
import ro.myApp.articles.entities.Translation;
import ro.myApp.client.BaseView;


@Name("documentListManagement")
@Scope(ScopeType.PAGE)
public class DocumentListManagement extends BaseView {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4596287290223135465L;

	private DocumentList<Article> articles;
	
	private DocumentList<Review> reviews;
	
	private DocumentList<Translation> translations;
	
	
	public DocumentList<Article> getArticles() {
		if (null==articles)
			articles = new DocumentList<Article>(Article.class);
		return articles;
	}
	
	public DocumentList<Review> getReviews() {
		if (null==reviews)
			 reviews = new DocumentList<Review>(Review.class);
		return reviews;
	}
	
	public DocumentList<Translation> getTranslations() {
		if (null==translations)
			translations = new DocumentList<Translation>(Translation.class);
		return translations;
	}
}
